package com.syni.mdd.sjb.common.component.utils.feign.service.mdd.sjb.common.datatreasure;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.feign.service.mdd.sjb.common.datatreasure.dto.UserLoginDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient(value = Constants.MDD_DXSH_APP,path = Constants.MDD_DXSH_APP_CONTEXT_PATH)
@RequestMapping("/databank/user")
public interface BankUserRestService {

    @PostMapping("/login")
    Map<String,Object> login(@RequestBody UserLoginDTO userLoginDTO);
}
